<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="webjars/jquery/2.1.1/jquery.js"></script>
    <script>
        $.ajax({
            url:'http://localhost/day1',
            type:'post',
            success:function (data) {
                $('#info').html("得到的数据："+data)
            },
            error:function () {
                $('#info').html("跨域失败")
            }
        })
    </script>
</head>
<body>
    <h1>hello</h1>
    <p id="info"></p>
</body>
</html>